package com.tron.dobest.java.tronnet.bio;

import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.nio.charset.StandardCharsets;

public class TronNetConsumer {
    public static void main(String[] args) throws Exception {
        InetAddress address = InetAddress.getByName("127.0.0.1");
        Socket socket = new Socket(address, 9200);
        OutputStream outputStream = socket.getOutputStream();
        outputStream.write("你好，世界!!!".getBytes(StandardCharsets.UTF_8));
        outputStream.close();
        socket.close();
    }
}
